/* 特定于 recognize.vue 的样式 */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* 占满整个视口高度 */
  overflow: hidden;
}

.navigation {
  display: flex;
  justify-content: space-around;
  background-color: #f8f8f8;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  z-index: 1000; /* 确保导航栏在最上方 */
}

.nav-item {
  padding: 10px;
  margin: 0 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #e0e0e0;
  }
}

.main-content {
  flex: 1;
  overflow: hidden;
  padding: 20px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  word-wrap: break-word;
  min-height: 100px; /* 确保文本框有一定的高度 */
  width: 100%;
  text-align: center;
}

.image-preview {
  width: 300px; /* 固定宽度 */
  height: 300px; /* 固定高度 */
  margin: auto;
  margin-bottom: 20px;
  position: relative;

  image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例并填充容器 */
  }
}

button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  background-color: #07c160;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #05a651;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .image-preview {
    width: 100%;
  }
}